//
//  SystemInfoObj.m
//  Brand
//
//  Created by Faker on 5/16/14.
//  Copyright (c) 2014 Faker. All rights reserved.
//

#import "SystemInfoObj.h"

@implementation SystemInfoObj

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.mId forKey:@"id"];
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.content forKey:@"cont"];
    [aCoder encodeObject:self.pic forKey:@"pic"];
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.videoId forKey:@"vid"];
    [aCoder encodeObject:self.msgType forKey:@"msg_type"];
    [aCoder encodeObject:self.updateTime forKey:@"update_time"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self){
    
        self.mId = [aDecoder decodeObjectForKey:@"id"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.content = [aDecoder decodeObjectForKey:@"cont"];
        self.pic = [aDecoder decodeObjectForKey:@"pic"];
        self.url = [aDecoder decodeObjectForKey:@"url"];
        self.videoId = [aDecoder decodeObjectForKey:@"vid"];
        self.msgType = [aDecoder decodeObjectForKey:@"msg_type"];
        self.updateTime = [aDecoder decodeObjectForKey:@"update_time"];
    
    }
    return self;
}


@end
